/**
 * Description:  数据抽取任务
 * Author:    EX-WANGHUA001 
 * Filename:    InformTask.java
 * Copyright:   2014 中国平安保险（集团）股份有限公司 版权所有
 * Company:     平安科技养老险及健康险系统开发部
 * Create at:   2014年8月11日
 */
package com.paic.mhis.hcpms.audit.biz.service;

import java.util.Arrays;

import com.paic.pafa.app.lwc.core.context.support.PafaCoreContexton;
import com.paic.pafa.logging2.Level;

public class ProblemDataTask implements Runnable {
	private ProblemDataExtractService problemDataExtractService;

	public ProblemDataTask(ProblemDataExtractService problemDataExtractService) {
		this.problemDataExtractService = problemDataExtractService;
	}

	@Override
	public void run() {
		try {
			problemDataExtractService.extractProblemData();
		} catch (Exception e) {
			PafaCoreContexton
					.getInstance()
					.getErrorLogger()
					.log("",
							Level.SEVERE,
							ProblemDataTask.class.getName(),
							"printException",
							e.getMessage()
									+ ": "
									+ Arrays.toString(e.getCause()
											.getStackTrace()), e.getCause(),
							null);
		}
	}
}
